package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.qo.PageResult;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {
    void save(Permission Permission);

    void delete(Long id);

    void update(Permission Permission);

    Permission selectOne(Long id);

    List<Permission> listAll();

    List<Permission> queryForData(QueryObject qo);

    PageInfo<Permission> query(QueryObject qo);

    //int queryForCount(QueryObject qo);
    //加载权限
    void reload();

    List<String> queryByEmployeeId(Long employeeId);
}
